﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RTracker.Models.Common;


namespace RTracker.Areas.Recruitment.Models.Shift
{
    public class GShift
    {
        // members declaration
        private List<CShift> _lstShift;
        private CShift _oCShift;       // to store object of CShift
        private CStatus _oCStatus;                          // to store object of CStatus
        private CPaging _oCPaging;
        private int m_nId;                                // to store organization id in case of save to return it to view. Based upon that we will refresh grid.

        // Default Constructor
        public GShift()
        {
            _lstShift = null;
            _oCShift = null;
            _oCStatus = null;
            _oCPaging = null;
        }

        // parameterized constructor
        public GShift(List<CShift> lstShift, CShift oCShift, CStatus oCStatus, CPaging oCPaging)
        {
            _lstShift = lstShift;
            _oCShift = oCShift;
            _oCStatus = oCStatus;
            _oCPaging = oCPaging;
        }

        #region  "Properties"


        public List<CShift> LstShift
        {
            get { return _lstShift; }
            set { _lstShift = value; }
        }



        /// <summary>
        /// Used to store object of CShift
        /// </summary>
        public CShift Shift
        {
            get { return _oCShift; }
            set { _oCShift = value; }
        }


        /// <summary>
        /// Used to store object of CStatus
        /// </summary>
        public CStatus Status
        {
            get { return _oCStatus; }
            set { _oCStatus = value; }
        }

        /// <summary>
        /// Used to store object of CPaging
        /// </summary>
        public CPaging Paging
        {
            get { return _oCPaging; }
            set { _oCPaging = value; }
        }


        /// <summary>
        /// Used to store organization id
        /// </summary>
        public int Id
        {
            get { return m_nId; }
            set { m_nId = value; }
        }

        #endregion
    }
}